package com.zy.scwwebuis.service;

import com.zy.scwcommon.bean.AppResponse;
import com.zy.scwwebuis.ScwWebuisApplication;
import com.zy.scwwebuis.service.exp.TOrderServiceFeignExceptionHandler;
import com.zy.scwwebuis.vo.req.OrderInfoSubmitVo;
import com.zy.scwwebuis.vo.resp.TOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
* @program: zyzc_springcloud
*
* @description: 远程调用订单接口
*
* @author: ZYY
*
* @create: 2024-07-19 14:52
**/
@Component
@FeignClient(value="SCW-ORDER",fallback= TOrderServiceFeignExceptionHandler.class)
public interface TOrderServiceFeign {

	@PostMapping("/order/saveOrder")
	public AppResponse<TOrder> saveOrder(@RequestBody OrderInfoSubmitVo submitVo);
}
